import Vue from 'vue';
import Main from './ShareMask.vue';
let ShareMaskConstructor = Vue.extend(Main);

let instance;
let instances = [];
let seed = 1;

const ShareMask = function (options) {
  options = options || {};

  let id = 'shareMask_' + seed++

  instance = new ShareMaskConstructor({
    data: options
  });
  instance.id = id;
  instance.$mount();
  document.body.appendChild(instance.$el);
  instance.visible = true
  instances.push(instance);
  return instance;
}

export default ShareMask;